<link rel="stylesheet" type="text/css" href="{$resUrl}/css/base.css" media="all">
<link rel="stylesheet" type="text/css" href="{$resUrl}/css/admin.css" media="all">
<div class="layui-fluid">
    <div class="larry-container larryms-admin">
		<div class="layui-row layui-col-space10">
			<div class="layui-col-xs12 layui-col-sm4 layui-col-md3 layui-col-lg3 animated fadeInUp">
				<section class="larry-panel">
					<div class="admin-info">
						<div class="photo">
					        <img src="{if $info.avatar_url}{$info.avatar_url}{else}{$resUrl}/images/user.jpg{/if}" alt="用户头像">
					    </div>
					    <h3 class="larryms-user">{$info.realname}</h3>
					    <p class="login-time">上次登录：2017-12-18 10:35:31</p>
					</div>
					<div class="admin-log">
						<div class="larryms-con larry-flex">
							<div class="larry-flex-item larry-layer">
								<em class="larryms-stat-count">1000</em>
								<span>登录</span>
							</div>
							<div class="larry-flex-item larry-layer">
								<em class="larryms-stat-count">200</em>
								<span>日志</span>
							</div>
							<div class="larry-flex-item larry-layer">
								<em class="larryms-stat-count">366</em>
								<span>消息</span>
							</div>
						</div>
					</div>
				</section>
			</div>
			<div class="layui-col-xs12 layui-col-sm8 layui-col-md9 layui-col-lg9 animated fadeInRightBig">
				<section class="larry-panel">
				    <div class="larryms-page-body">
						<form class="layui-form" action="">
							<input name="id" id="id" type="hidden" value="{$info.id}">
							<div class="layui-form-item">
								<label class="layui-form-label">头像：</label>
								{'widget'|component:'uploadImg':"avatar,{$info['avatar_url']},150x150"}
							</div>
							<div class="layui-form-item">
								<div class="layui-inline">
									<label class="layui-form-label">真实姓名：</label>
									<div class="layui-input-inline">
										<input name="realname" id="realname" value="{$info.realname}" lay-verify="realname" autocomplete="off" placeholder="请输入真实姓名(最少2个字)" class="layui-input" type="text">
									</div>
								</div>
								<div class="layui-inline">
									<label class="layui-form-label">员工工号：</label>
									<div class="layui-input-inline">
										<input name="num" id="num" value="{$info.num}" lay-verify="required|number" placeholder="请输入员工工号" autocomplete="off" class="layui-input layui-disabled" type="text">
									</div>
								</div>
							</div>
							<div class="layui-form-item">
								<div class="layui-inline">
									<label class="layui-form-label">手机号码：</label>
									<div class="layui-input-inline">
										<input name="mobile" id="mobile" value="{$info.mobile}" lay-verify="required|phone" placeholder="请输入手机号码" autocomplete="off" class="layui-input" type="tel">
									</div>
								</div>
								
								<div class="layui-inline">
									<label class="layui-form-label">电子邮箱：</label>
									<div class="layui-input-inline">
										<input name="email" id="email" value="{$info.email}" lay-verify="required|email" placeholder="请输入邮箱" autocomplete="off" class="layui-input" type="text">
									</div>
								</div>
							</div>
							<div class="layui-form-item">
								<div class="layui-inline">
									<label class="layui-form-label">身份证号：</label>
									<div class="layui-input-inline">
										<input name="identity" id="identity" value="{$info.identity}" lay-verify="identity" placeholder="请输入身份证号" autocomplete="off" class="layui-input" type="text">
									</div>
								</div>
								<div class="layui-inline">
									<label class="layui-form-label">性别：</label>
									<div class="layui-input-block">
										{'widget'|component:'dictSelect':"gender|1|性别|1|DIC_SYSTEM_GENDER|{$info['gender']}"}
									</div>
								</div>
							</div>
							<div class="layui-form-item">
								<div class="layui-inline">
									<label class="layui-form-label">职位：</label>
									<div class="layui-input-inline">
										{'widget'|component:'dictSelect':"position_id|1|职位|3|DIC_ADMIN_POSITION|{$info['position_id']}"}
									</div>
								</div>
								<div class="layui-inline">
									<label class="layui-form-label">入职时间：</label>
									<div class="layui-input-inline">
										<input name="entry_date" id="entry_date" value="{$info.format_entry_date}" lay-verify="datetime" placeholder="yyyy-MM-dd" autocomplete="off" class="layui-input" type="text">
									</div>
								</div>
							</div>
							<div class="layui-form-item">
								<div class="layui-inline">
									<label class="layui-form-label">用户名：</label>
									<div class="layui-input-inline">
										<input name="username" id="username" value="{$info.username}" lay-verify="required" placeholder="请输入用户名" autocomplete="off" class="layui-input" type="text">
									</div>
								</div>
								
								<div class="layui-inline">
									<label class="layui-form-label">密码：</label>
									<div class="layui-input-inline">
										<input name="password" placeholder="请输入密码" autocomplete="off" class="layui-input" type="password">
									</div>
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">所属城市：</label>
								{'widget'|component:'citySelect':"{$info['district_id']},3"}
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">所属部门：</label>
								<div class="layui-input-inline">
									{'widget'|component:'deptSelect':"dept_id,{$info['dept_id']}"}
								</div>
							</div>
							<div class="layui-form-item layui-form-text">
								<label class="layui-form-label">备注：</label>
								<div class="layui-input-block">
									<textarea name="note" id="note" placeholder="请输入备注" class="layui-textarea">{$info.note}</textarea>
								</div>
							</div>
							<div class="layui-form-item">
								<div class="layui-input-block">
									<button class="layui-btn" lay-submit="" lay-filter="submitForm">立即提交</button>
									<button type="reset" class="layui-btn layui-btn-primary">重置</button>
								</div>
							</div>
						</form>
				    </div>
				</section>
			</div>
		</div>
    </div>
</div>
